﻿$("#btnInitialSetup").live("click", function (e) {

    if ($("#chkagree").attr("checked")) {

        return true;
    }
    else {
        alert("Please agree to the terms of use.");
        return false;
    }
});
$("#btnLogin").live("click", function (e) {
    var username = $("#paramUserName").val().trim();
    var password = $("#paramPassword").val().trim();
    var returnValue = isValidEmailAddress(username);

    if (username.length == 0 || password.length == 0) {
        alert("You have not entered a Username(or Password).");
        return false;
    }
    else {
        if (returnValue == true) {
            // $("#FormInitialSetup").submit();
        }
        else {
            alert("You have  entered invalid Username.");
            return false;
        }

    }
});